package Chapter6;
//计算程序在进行求和操作所消耗的时间
public class Example10 {
	public static void main(String[] args) {
		long startTime=System.currentTimeMillis();//circle beginning time
		int sum=0;
		for(int i=0;i<10000000;i++) {
			sum+=i;
		}
		long endTime=System.currentTimeMillis();//circle ending time
		System.out.println(endTime-startTime);
	}

}
